package com.ssh.action.interceptor;

import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;
import org.springframework.stereotype.Component;

/**
 * Created by H-209-FX-XY on 2018/4/17.
 */

public class MyInterceptor extends AbstractInterceptor {
    @Override
    public String intercept(ActionInvocation actionInvocation) throws Exception {
        System.out.println("MyInterceptor before");
        String result = actionInvocation.invoke();
        System.out.println("MyInterceptor after");

        return result;
    }
}
